package com.agent.service;

import com.agent.entity.Activities;
import com.baomidou.mybatisplus.extension.service.IService;

import java.time.LocalDate;
import java.time.LocalDateTime;
import java.time.LocalTime;
import java.util.List;

public interface ActivitiesService extends IService<Activities> {

    /**
     * 获取指定日期的活动
     */
    List<Activities> getActivitiesByDate(Long userId, LocalDate date, LocalTime startTime, LocalTime endTime);

    /**
     * 检查活动时间是否冲突
     */
    List<Activities> checkConflicts(Long userId, LocalDate date,
                                    LocalTime startTime, LocalTime endTime);

    /**
     * 获取当前时间
     */
    LocalDateTime getCurrentTime();

    /**
     * 解析相对时间（明天、后天等）
     */
    LocalDate parseRelativeDate(String relativeTime);
}
